package com.dao;

import com.bean.Role;
import com.bean.User;

import java.util.List;

public interface UserDao {
    List<User> getAllUsers();

    int addUser(User user);

    int addUser(String account,List<String> roleNames);

    int updateUserRole(int key, List<String> roleNames);

    User returnUser(String account);

    int accountPasswordIsEqual(String account,String password);

    int deleteUser(int key);

    int updatePassword(User user,String NewPsw);

    List<User> getFindUsers(String userName);

    User getSelectUser(int key);
}
